package com.deer.wms.base.system.web.box;

import com.deer.wms.base.system.model.bar.BarCode;
import com.deer.wms.base.system.model.bar.BarCodeDto;
import com.deer.wms.base.system.model.box.BoxItemError;
import com.deer.wms.base.system.service.box.BoxItemErrorService;
import com.deer.wms.common.core.controller.BaseController;
import com.deer.wms.common.core.page.TableDataInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/in/BoxItemError")
@Slf4j
public class BoxItemErrorController extends BaseController {
    private String prefix = "in/BoxItemError";
    @Autowired
    private BoxItemErrorService boxItemErrorService;
    /**
     *跳转显示页面
     * @return
     */
    @RequiresPermissions("in:BoxItemError:view")
    @GetMapping()
    public String BarCode()
    {
        return prefix + "/BoxItemError";
    }



    @PostMapping("/findList")
    @ResponseBody
    public TableDataInfo findList(BoxItemError boxItemError) {
        startPage();
        List<BoxItemError> list = boxItemErrorService.findBoxItemErrorList(boxItemError);
        return getDataTable(list);
    }
}
